package com.zbl.springdemo.bean.cycle;

import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Component
public class CycleB implements Cycle {
    @Resource
    private Cycle cycleC;

    @Override
    public void cycle() {
        System.out.println("CycleB");
        System.out.println("Cycle");
        cycleC.cycle();
    }
}
